package nc.ebs.message.webservice.client;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class SmtpAuthenticator extends Authenticator
{

    String username;
    String password;

    public SmtpAuthenticator(String username, String password)
    {
        this.username = null;
        this.password = null;
        this.username = username;
        this.password = password;
    }

    public PasswordAuthentication getPasswordAuthentication()
    {
        return new PasswordAuthentication(username, password);
    }
}